// 获取相应文章内容
export const getArchivesApi = (params) => {
    const defaultParams = {
      channel: '44',
      filter: [],
      orderby: '',
      orderway: '',
      page: 1,
      offset: 10,
      timeout: 10000
    };
  
    const mergedParams = { ...defaultParams, ...params };
  
    return $.ajax({
      url: '/addons/cms/api.archives/index',
      type: 'GET',
      data: mergedParams,
      timeout: mergedParams.timeout
    });
};